﻿@model NigiriClub.WebUI.Models.News


<script type="text/javascript">
    function Show() {
        $('#meow').show(300);
        document.getElementById("newsEditorShowOrHide").onclick = Hide;
    }

    function Hide() {
        $('#meow').hide(300);
        document.getElementById("newsEditorShowOrHide").onclick = Show;
    }
</script>

<button type="submit" class="btn btn-primary btn-sm" id="newsEditorShowOrHide" onclick="Show()"><span class="glyphicon glyphicon-plus"></span>Новость</button>



<div id="meow" style="display: none;">
    @using (Html.BeginForm("AddNews", "Home", new { },
            FormMethod.Post, new { @class = "form-horizontal" }))
    {
        @Html.Partial("_NewsEditorPartial", @Model)
    }
</div>
